import request from '@/utils/request'
//用户管理列表
export function getUserList(data) {
  return request({
    url: '/getUserList',
    method: 'post',
    data,
  })
}
//编辑用户
export function upUser(data) {
  return request({
    url: '/upUser',
    method: 'post',
    data,
  })
}
//删除用户
export function deleteUser(data) {
  return request({
    url: '/deleteUser',
    method: 'post',
    data,
  })
}
//获取试卷列表
export function getExam(data) {
  return request({
    url: '/getExam',
    method: 'post',
    data,
  })
}
//修改试卷
export function editExam(data) {
  return request({
    url: '/editExam',
    method: 'post',
    data,
  })
}

//新增试卷
export function setPaper(data) {
  return request({
    url: '/setPaper',
    method: 'post',
    data,
  })
}
//上传文件
export function upExcelCleateExamation(data) {
  return request({
    url: '/upExcelCleateExamation',
    method: 'post',
    data
  })
}
//删除试卷
export function deleteExam(data) {
  return request({
    url: '/deleteExam',
    method: 'post',
    data,
  })
}

//获取所有用户
export function getOurList() {
  return request({
    url: '/getOurList',
    method: 'get',
  })
}